package com.group.service;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.group.pojo.TbContract;

public interface ContractService {
   //查询所有的合同
	public List<TbContract> query();
    //查询合同中的设备名称
	public String querydeviceName(String id);
	//删除合同信息
	public Map<String, String> deleteContractInfo(String[] contractIds);
	//通过合同id查询合同的信息
	public TbContract getContractById(String id);
	//修改合同
	public Map<String, String> updateContractSave(TbContract contract,String deviceName);
	//根据客户id和设备id查询合同
	public List<TbContract>  getcontractByDeviceIdAndCustomerId(String deviceId, String customerId);
	
	public Map<String, String> save(TbContract contract, HttpServletRequest request);
	public Map<String, String> update(TbContract contract);
	public List<TbContract> query(TbContract contract);
}
